<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - 表单向导</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="/bootstrap/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">

    <link href="/bootstrap/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/bootstrap/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/bootstrap/css/plugins/steps/jquery.steps.css" rel="stylesheet">
    <link href="/bootstrap/css/animate.css" rel="stylesheet">
    <link href="/bootstrap/css/style.css?v=4.1.0" rel="stylesheet">

</head>
<style>
    .wizard-big.wizard > .content {
        min-height: 550px;
    }
</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>独立借款人消费贷</h5>
                    </div>
                    <div class="ibox-content">
                        <h3>添加独立借款人消费贷</h3>
                        <p>*为必填字段</p>

                        <form id="form" action="form_wizard.html#" class="wizard-big">
                            <h1>基本信息</h1>
                            <fieldset>
                                <h2>基本信息</h2>
                                <div class="row">
                                    <div class="col-sm-8">
                                        <div class="form-group col-sm-4">
                                            <label>*姓名：</label>
                                            <input id="userName" name="userName" type="text" class="form-control required">
                                        </div>
                                        <div class="form-group col-sm-4">
                                            <label>*手机号：</label>
                                            <input id="password" name="password" type="text" class="form-control required">
                                        </div>
                                        <div class="form-group col-sm-4">
                                            <label>*支付密码：</label>
                                            <input id="pay_passwd" name="confirm" type="text" class="form-control required">
                                        </div>
                                        <div class="form-group col-sm-12">
                                            <label>*身份证号：</label>
                                            <input id="idcard" name="confirm" type="text" class="form-control required">
                                        </div>
                                        <div class="form-group col-sm-12">
                                            <div class="col-sm-5 text-center" style="background-color: #c2c2c2;">
                                                点击上传身份证正面
                                            </div>
                                            <div class="col-sm-2"></div>
                                            <div class="col-sm-5 text-center" style="background-color: #c2c2c2">
                                                点击上传身份证正面反面
                                            </div>
                                        </div>
                                        <div class="form-group col-sm-12">
                                            <div class="col-sm-5 text-center">
                                                <img  style="height: 100%;width: 100%"  src="http://f.hiphotos.baidu.com/image/pic/item/503d269759ee3d6db032f61b48166d224e4ade6e.jpg">
                                            </div>
                                            <div class="col-sm-2"></div>
                                            <div class="col-sm-5 text-center" >
                                                <img  style="height: 100%;width: 100%" src="http://f.hiphotos.baidu.com/image/pic/item/503d269759ee3d6db032f61b48166d224e4ade6e.jpg">
                                            </div>
                                        </div>

                                        <div class="form-group col-sm-3">
                                            <label>借款期限(天)：</label>
                                            <input id="borrow_duration" name="confirm" type="text" class="form-control required">
                                        </div>
                                        <div class="form-group col-sm-3">
                                            <label>还款方式(天)：</label>
                                            <select id="repay_way" name="confirm" type="text" class="form-control required">
                                                <option>1</option>
                                                <option>1</option>
                                                <option>1</option>
                                            </select>
                                        </div>
                                        <div class="form-group col-sm-3">
                                            <label>还款来源：</label>
                                            <input id="repay_sourcer" name="confirm" type="text" class="form-control required">
                                        </div>
                                        <div class="form-group col-sm-3">
                                            <label>资金用途：</label>
                                            <input id="use_for" name="confirm" type="text" class="form-control required">
                                        </div>
                                    </div>

                                    <div class="col-sm-4">
                                        <div class="text-center">
                                            <div style="margin-top: 20px">
                                                <i class="fa fa-sign-in" style="font-size: 180px;color: #e5e5e5 "></i>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </fieldset>
                            <h1>个人资料</h1>
                            <fieldset>
                                <h2>个人资料信息</h2>
                                <div class="row">
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>姓名 *</label>
                                            <input id="name" name="name" type="text" class="form-control required">
                                        </div>
                                    </div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label>Email *</label>
                                            <input id="email" name="email" type="text" class="form-control required email">
                                        </div>
                                        <div class="form-group">
                                            <label>地址 *</label>
                                            <input id="address" name="address" type="text" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <!-- 全局js -->
    <script src="/bootstrap/js/jquery.min.js?v=2.1.4"></script>
    <script src="/bootstrap/js/bootstrap.min.js?v=3.3.6"></script>



    <!-- 自定义js -->
    <script src="/bootstrap/js/content.js?v=1.0.0"></script>


    <!-- Steps -->
    <script src="/bootstrap/js/plugins/staps/jquery.steps.min.js"></script>

    <!-- Jquery Validate -->
    <script src="/bootstrap/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="/bootstrap/js/plugins/validate/messages_zh.min.js"></script>


    <script>
        $(document).ready(function () {
            $("#wizard").steps();
            $("#form").steps({
                bodyTag: "fieldset",
                onStepChanging: function (event, currentIndex, newIndex) {
                    // Always allow going backward even if the current step contains invalid fields!
                    if (currentIndex > newIndex) {
                        return true;
                    }

                    // Forbid suppressing "Warning" step if the user is to young
                    if (newIndex === 3 && Number($("#age").val()) < 18) {
                        return false;
                    }

                    var form = $(this);

                    // Clean up if user went backward before
                    if (currentIndex < newIndex) {
                        // To remove error styles
                        $(".body:eq(" + newIndex + ") label.error", form).remove();
                        $(".body:eq(" + newIndex + ") .error", form).removeClass("error");
                    }

                    // Disable validation on fields that are disabled or hidden.
                    form.validate().settings.ignore = ":disabled,:hidden";

                    // Start validation; Prevent going forward if false
                    return form.valid();
                },
                onStepChanged: function (event, currentIndex, priorIndex) {
                    // Suppress (skip) "Warning" step if the user is old enough.
                    if (currentIndex === 2 && Number($("#age").val()) >= 18) {
                        $(this).steps("next");
                    }

                    // Suppress (skip) "Warning" step if the user is old enough and wants to the previous step.
                    if (currentIndex === 2 && priorIndex === 3) {
                        $(this).steps("previous");
                    }
                },
                onFinishing: function (event, currentIndex) {
                    var form = $(this);

                    // Disable validation on fields that are disabled.
                    // At this point it's recommended to do an overall check (mean ignoring only disabled fields)
                    form.validate().settings.ignore = ":disabled";

                    // Start validation; Prevent form submission if false
                    return form.valid();
                },
                onFinished: function (event, currentIndex) {
                    var form = $(this);

                    // Submit form input
                    form.submit();
                }
            }).validate({
                errorPlacement: function (error, element) {
                    element.before(error);
                },
                rules: {
                    confirm: {
                        equalTo: "#password"
                    }
                }
            });
        });
    </script>


</body>

</html>
